package com.woniu.command.outApplyCommand;


import com.woniu.command.Command;
import com.woniu.command.handler.MaterialOutApplyCommandHandler;
import com.woniu.util.ApplicationContextHolder;


public class UpdateMaterialOutApplyCommand implements Command<Integer> {
    private MaterialOutApplyCommandHandler handler;

    public UpdateMaterialOutApplyCommand(){
        this.handler = ApplicationContextHolder.getApplicationContext()
                .getBean(MaterialOutApplyCommandHandler.class);
    }

    @Override
    public void execute(Integer id) {
        handler.updateOutApply(id);
    }
}
